Reference-less frequency detector

ABSTRACT

Embodiments provide a reference-less frequency detector that overcomes the “dead zone” problem of conventional circuits. In particular, the frequency detector is able to accurately resolve the polarity of the frequency difference between the VCO clock signal and the data signal, irrespective of the magnitude of the frequency difference and the presence of VCO clock jitter and/or ISI on the data signal.

BACKGROUND

1. Field of the Invention

The present invention relates generally to clock recovery.

2. Background Art

Conventional voltage controlled oscillator (VCO) calibration and/or clock and data recovery (CDR) require a reference clock in order to bring the VCO output frequency in the vicinity of the data rate before phase acquisition.

In certain applications, such as power and/or area-limited circuits, a reference clock may not be present or may be difficult to route. Accordingly, there is a need for reference-less VCO calibration and/or CDR techniques. In addition, it is desirable that VCO calibration and/or CDR techniques be minimally susceptible to the presence of jitter and inter-symbol interference (ISI) on the data and clock jitter in the VCO output.

BRIEF DESCRIPTION OF THE DRAWINGS/FIGURES

The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate the present invention and, together with the description, further serve to explain the principles of the invention and to enable a person skilled in the pertinent art to make and use the invention.

FIG. 1 illustrates a conventional reference-less clock recovery circuit.

FIG. 2 illustrates an example reference-less clock recovery circuit according to an embodiment of the present invention.

FIG. 3 illustrates a conventional frequency detector.

FIG. 4 illustrates a “dead zone” problem in convention frequency detectors.

FIG. 5 is an example that illustrates a detection failure condition caused by the dead zone problem in conventional frequency detectors.

FIG. 6 illustrates an example reference-less frequency detector according to an embodiment of the present invention.

FIG. 7 is an example that illustrates the resolution of the “dead zone” problem according to an embodiment of the present invention.

FIG. 8 illustrates an example heuristic algorithm according to an embodiment of the present invention.

FIG. 9 illustrates an example discovery phase of a frequency search scheme according to an embodiment of the present invention.

FIG. 10 illustrates an example frequency search scheme according to an embodiment of the present invention.

FIG. 11 is a process flowchart that illustrates a method according to an embodiment of the present invention.

The present invention will be described with reference to the accompanying drawings. Generally, the drawing in which an element first appears is typically indicated by the leftmost digit(s) in the corresponding reference number.

DETAILED DESCRIPTION OF EMBODIMENTS

FIG. 1 illustrate a conventional reference-less clock recovery circuit 100. Circuit 100 includes a frequency detection circuit and a phase detection circuit. The frequency detection circuit includes a frequency detector 104, a voltage-to-current (V/I) converter 106, a resistor-capacitor (RC) filter 108, and a voltage controlled oscillator (VCO) 110. The phase detection circuit includes a phase detector 112, a V/I converter 114, and VCO 110.

Frequency detector 104 receives as inputs data signal 102 and the output of VCO 110 via VCO output signal 116. Frequency detector 104 generates a voltage signal 122 based on a frequency difference between data signal 102 and VCO output signal 116. V/I converter 106 converts voltage signal 122 to a current signal 124. From current signal 124, a V_(ctrl) signal 120 is generated across RC filter 108 and at the input of VCO 110.

The frequency detection circuit of circuit 100 ensures that the output frequency of VCO 110 is brought close to the rate of data signal 102.

The output of VCO 110 is provided via VCO output signal 118 to phase detector 112. Phase detector 112 also receives data signal 102, and generates a voltage signal 126 based on a phase difference between data signal 102 and VCO output signal 118. V/I converter 114 converts voltage signal 126 to a current, which causes V_(ctrl) signal 120 across RC filter 108. V_(ctrl) signal 120 controls VCO 110 to shift VCO output signal 118 in phase so as to synchronize data signal 102 and output signal 118 (i.e., lock VCO output signal 118 to data signal 102).

Although circuit 100 allows reference-less clock recovery, calibration of the VCO (i.e., selection of a VCO frequency band of operation) according to the input data rate is not possible in circuit 100 without the presence of a reference clock. In addition, the use of analog feedback loops (which are continuously ON) for both frequency detection and phase detection in circuit 100 makes circuit 100 not very suitable for power-limited applications.

FIG. 2 illustrates an example reference-less clock recovery circuit 200 according to an embodiment of the present invention. Like circuit 100, example circuit 200 includes a frequency detection circuit and a phase detection circuit. The frequency detection circuit includes a reference-less frequency detector 202, a VCO calibration module 206, and a VCO 210. The frequency detection circuit in example circuit allows automatic calibration of VCO 210 so as to optimize the gain of VCO 210 according to the input data rate. The phase detection circuit of circuit 200 includes phase detector 112, V/I converter 114, RC filter 108, and VCO 210.

In operation, when data signal 102 is first received, circuit 200 first performs frequency detection to detect the rate of data signal 102. During the frequency detection phase, the frequency detection circuit of circuit 200 is active, and the phase detection circuit of circuit 200 is disabled.

Reference-less frequency detector 202 receives as inputs data signal 102 and the output 212 of VCO 210. Frequency detector 202 generates an output signal 204, which includes a representation of the frequency difference (including polarity) between data signal 102 and VCO output signal 212. According to embodiments, output signal 204 may analog or digital.

Based on output signal 204, VCO calibration module 206 selects a calibration code 208, which it provides to VCO 210. Calibration code 208 calibrates VCO 210 so as to bring the frequency of VCO output signal 212 close to the rate of data signal 102. In an embodiment, as further described below, VCO 210 is configurable to operate in a plurality of VCO states, and calibration code 208 calibrates VCO 210 by enabling an appropriate one of the plurality of VCO states based on the rate of data signal 102.

Subsequently, the frequency detection circuit of circuit 200 is disabled, and the phase detection circuit of circuit 200 is activated. The phase detection circuit, as described above with respect to circuit 100, operates to lock VCO output signal 212 to data signal 102 by synchronizing VCO output signal 212 and data signal 102.

As described above, VCO calibration module 206 relies on the output signal 204 provided by frequency detector 202 to select a calibration code 208. Accordingly, the ability of VCO calibration module 206 to properly calibrate VCO 210 depends on the ability of frequency detector 202 to accurately determine the frequency difference (including polarity) between data signal 102 and VCO output signal 212.

Conventional frequency detectors, as further described below, suffer from a “dead zone” problem as the frequency difference between data signal 102 and VCO output signal 212 approaches zero. The “dead zone” problem causes the frequency detector to fail to resolve properly the polarity of the frequency difference between data signal 102 and VCO output signal 212, in the presence of jitter in VCO output signal 212 and/or inter-symbol interference (ISI) on data signal 102. The “dead zone” problem is illustrated below with reference to a conventional frequency detector, described in FIG. 3.

FIG. 3 illustrates a conventional binary reference-less frequency detector 300. As shown in FIG. 3, frequency detector 300 includes a delay buffer 308 and D flip-flops 310, 312, and 318.

Frequency detector 300 receives as inputs an in-phase component D_(in,I) 302 of a data signal and a clock signal 306 (from the VCO). D_(in,I) 302 and clock signal 306 are provided as the clock input and the data input, respectively, of D flip-flop 310. D flip-flop 310 samples clock signal 306 at the rising edges of D_(in,I) 302 to generate an output signal Q₁ 314.

From in-phase component D_(in,I) 302, a quadrature component D_(in,Q) 304 of the data signal is generated using delay buffer 308. D_(in,Q) 304 and clock signal 306 are provided as the clock input and the data input, respectively, of D flip-flop 312. D flip-flop 312 samples clock signal 306 at the rising edges of D_(in,Q) 304 to generate an output signal Q₂ 316.

Signals Q₁ 314 and Q₂ 316 contain information regarding the frequency difference between the data signal and clock signal 306. Specifically, the period of signals Q₁ 314 and Q₂ 316 (signals Q₁ 314 and Q₂ 316 have equal period) is proportional (in an embodiment, inversely proportional) to the frequency difference between the data signal and clock signal 306, and the relative phase shift between signals Q₁ 314 and Q₂ 316 indicates the polarity of the frequency difference between the data signal and clock signal 306. In particular, when signal Q₁ 314 leads signal Q₂ 316, clock signal 306 has a lower frequency than the data signal; and when signal Q₁ 314 lags signal Q₂ 316, clock signal 306 has a higher frequency than the data signal.

Signal Q₃ 320 indicates which of signals Q₁ 314 and Q₂ 316 leads the other, and thus the polarity of the frequency difference between the data signal and clock signal 306. In particular, when signal Q₁ 314 leads signal Q₂ 316, signal Q₃ 320 will be a logic low (e.g., −1), indicating that the frequency of clock signal 306 (f_(VCO)) is lower than the frequency of the data signal (f_(DATA)) (i.e., Δf=f_(VCO)−f_(DATA)<0). On the other hand, when signal Q₁ 314 lags signal Q₂ 316, signal Q₃ 320 will be a logic high (e.g., +1), indicating that the frequency of clock signal 306 (f_(VCO)) is higher than the frequency of the data signal (f_(DATA)) (i.e., Δf=f_(VCO)−f_(DATA)>0).

Typically, the average of signal Q₃ 320 (E[Q₃]) over a pre-defined time interval is used to determine whether the frequency difference between clock signal 306 and the data signal (i.e., Δf) is negative or positive. For example, if the average is closer to the logic high value (e.g., +1), then it is determined that Δf is positive; and if the average is closer to the logic low value (e.g., −1), then it is determined that Δf is negative.

Generally, when Δf is large (either positive or negative), the average of signal Q₃ 320 is a good indicator of the polarity of Δf (even in the presence of clock jitter and/or ISI on the data signal, for example). However, as Δf tends towards zero, signal Q₃ 320 starts to toggle in the presence of jitter in clock signal 306 and/or ISI on the data signal, for example. This results in the average of signal Q₃ 320 (over the pre-defined interval) to approach zero, making it unusable to determine to the polarity of Δf. This is known as the “dead zone” problem in conventional frequency detectors and is further illustrated below in FIGS. 4 and 5.

FIG. 4 is an example plot 400 of the average of signal Q₃ 320 (E[Q₃]) versus the frequency difference between clock signal 306 and the data signal (Δf) in frequency detector 300, in the presence of jitter in clock signal 306 and/or ISI on the data signal. As shown in FIG. 4, when Δf is not close to zero, the average of signal Q₃ 320 is either positive or negative, unmistakably indicating the polarity of Δf. However, as Δf tends to zero, the average of signal Q₃ 320 (E[Q₃]) approaches zero also (i.e., the sign of E[Q₃] cannot be resolved), creating what is referred to as a “dead zone.” Thus, in the “dead zone,” frequency detector 300 fails to resolve the polarity of the frequency difference between clock signal 306 and the data signal (Δf), in the presence of jitter in clock signal 306 and/or inter-symbol interference (ISI) on the data signal, for example.

FIG. 5 shows example timing diagrams of signals Q₁ 314, Q₂ 316, and Q₃ 320 that illustrate an example frequency detection failure caused by the “dead zone” problem in frequency detector 300. In the example of FIG. 5, the frequency of clock signal 306 (f_(VCO)) is lower than the frequency of the data signal (f_(DATA)) (i.e., Δf=f_(VCO)−f_(DATA)<0). Thus, as shown in FIG. 5, signal Q₁ 314 leads signal Q₂ 316.

Ideally, if no jitter in clock signal 306 and/or ISI on the data signal is present, signals Q₁ 314 and Q₂ 316 would also be jitter-free (i.e., clean square waveforms). Because signal Q₁ 314 leads signal Q₂ 316, signal Q₃ 320 would take a logic low value (e.g., −1) at all times. However, in the presence of jitter in clock signal 306 and/or ISI on the data signal, signals Q₁ 314 and Q₂ 316 may exhibit glitches, which are reflected as unwanted toggling at the zero crossings of signals Q₁ 314 and Q₂ 316. For example, as shown in FIG. 5, signals Q₁ 314 and Q₂ 316 may toggle more than one time at low to high or high to low transitions. Consequently, D flip-flop 318 may sample Q₂ 316 incorrectly at both the rising and falling edge times of signal Q₁ 314 (i.e., referring to FIG. 5 for example, instead of sampling Q₂ 316 at rising edge time 502 only, Q₂ 316 will also be sampled at falling edge time 504 when Q₁ 314 undergoes an unwanted low to high transition at 504), resulting in signal Q₃ 320 toggling as shown in FIG. 5 (instead of having a solid logic low value) and to have an average value of zero (over the pre-defined time interval). When that occurs, frequency detector 300 is unable to resolve the polarity of Δf, and thus the VCO frequency cannot be brought any closer to the data rate of the data signal.

Embodiments of the present invention, as further described below, provide a reference-less frequency detector that overcomes the above described “dead zone” problem of conventional circuits. In particular, the frequency detector is able to accurately resolve the polarity of the frequency difference between the VCO clock signal and the data signal, irrespective of the magnitude of the frequency difference (Δf) and the presence of VCO clock jitter and/or ISI on the data signal.

FIG. 6 illustrates an example reference-less frequency detector 600 according to an embodiment of the present invention. Example frequency detector 600 is provided for the purpose of illustration only, and is not limiting of embodiments of the present invention.

As shown in FIG. 6, frequency detector 600 includes a delay buffer 602 and three sampling stages, comprising D flip-flops 604, 606, 612, 614, and 620. In an embodiment, signals in frequency detector 600 are high-speed differential signals, and delay buffer 602 and one or more of D flip-flops 604, 606. 612, 614, and 620 use high-speed common mode logic (CML). As would be understood by a person of skill in the art, frequency detector 600 may be implemented using different components, including, for example, other types of flip-flops, or more generally, any types of latches/sampling circuits.

Like frequency detector 300 described above, frequency detector 600 receives as inputs an in-phase component D_(in,I) 302 of a data signal and a clock signal 306 (from the VCO). D_(in,I) 302 and clock signal 306 are provided as the clock input and the data input, respectively, of D flip-flop 604. D flip-flop 604 samples clock signal 306 at the rising edges of D_(in,I) 302 to generate an output signal Q₁ 608. From in-phase component D_(in,I) 302, a quadrature component D_(in,Q) 304 of the data signal is generated using delay buffer 602. D_(in,Q) 304 and clock signal 306 are provided as the clock input and the data input, respectively, of D flip-flop 606. D flip-flop 606 samples clock signal 306 at the rising edges of D_(in,Q) 304 to generate an output signal Q₂ 610. Signals Q₁ 608 and Q₂ 610 are provided as the clock input and the data input, respectively, of D flip-flop 614. D flip-flop 614 samples signal Q₂ 610 at the rising edges of signal Q₁ 608, to generate an output signal Q₃ 616. Alternatively, D flip-flop 610 samples signal Q₂ 610 at the falling edges of signal Q₁ 608, or at both the rising and falling edges of signal Q₁ 608, to generate signal Q₃ 616.

Thus, signals Q₁ 608, Q₂ 610, and Q₃ 616 are generated in an identical manner as signals Q₁ 314, Q₂ 316, and Q₃ 320, described above with reference to frequency detector 300. Accordingly, signals Q₁ 608, Q₂ 610, and Q₃ 616 may be used to determine the polarity of Δf when Δf is outside the “dead zone” range.

To resolve the polarity of Δf within the “dead zone” range, signals Q₁ 608 and Q₂ 610 are further provided as the data input and the clock input, respectively, of D flip-flop 612. D flip-flop 612 samples signal Q₁ 608 at the rising edges of signal Q₂ 610 to generate an output signal Q₄ 618. Alternatively, D flip-flop 612 samples signal Q₁ 608 at the falling edges of signal Q₂ 610, or at both the rising and falling edges of signal Q₂ 610, to generate signal Q₄ 618. Subsequently, signals Q₃ 616 and Q₄ 618 are provided as the data input and the clock input, respectively, of D flip-flop 620. D flip-flop 620 samples signal Q₃ 616 at the rising edges of signal Q₄ 618 to generate an output signal Q₅ 622. Signal Q₅ 622, as further described below, can be used to determine the polarity of Δf when Δf is inside “dead zone” range.

FIG. 7 shows example timing diagrams of signals Q₁ 608, Q₂ 610, Q₃ 616, Q₄ 618, and Q₅ 622 that illustrate the performance of frequency detector 600 within the “dead zone” range. Specifically, FIG. 7 shows the same example scenario described above in FIG. 5 with reference to frequency detector 300 to illustrate the “dead zone” problem.

In the example of FIG. 7, the frequency of clock signal 306 (f_(VCO)) is lower than the frequency of the data signal (f_(DATA)) (i.e., Δf=f_(VCO)−f_(DATA)<0). Thus, as shown in FIG. 7, signal Q₁ 608 leads signal Q₂ 610. Because of the presence of jitter in clock signal 306 and/or ISI on the data signal, signals Q₁ 608 and Q₂ 610 exhibit glitches, which are reflected as unwanted toggling at the zero crossings of signals Q₁ 608 and Q₂ 610, as shown in FIG. 7. As a result, signal Q₃ 616 toggles as shown in FIG. 7 (instead of having a solid logic low value) and has an average value of zero (over the pre-defined time interval).

Signal Q₄ 618 is generated by sampling signal Q₁ 608 at the rising edges of signal Q₂ 610. Thus, signal Q₄ 618 is a phase shifted version of signal Q₃ 616. Specifically, signal Q₄ 618 leads signal Q₃ 616 (as shown in FIG. 7) when Δf=f_(VCO)−f_(DATA)<0, and lags signal Q₃ 616 when Δf>0.

Signal Q₅ 622 indicates which of signals Q₃ 616 and Q₄ 618 leads the other, and thus the polarity of Δf. In particular, when signal Q₄ 618 leads signal Q₃ 616, signal Q₅ 622 will be a logic low (e.g., −1), indicating that the frequency of clock signal 306 (f_(VCO)) is lower than the frequency of the data signal (f_(DATA)) (i.e., Δf<0). On the other hand, when signal Q₄ 618 lags signal Q₃ 616, signal Q₅ 622 will be a logic high (e.g., +1), indicating that the frequency of clock signal 306 (f_(VCO)) is higher than the frequency of the data signal (f_(DATA)) (i.e., Δf>0).

In the example of FIG. 7, with Δf=f_(VCO)−f_(DATA)<0, signal Q₄ 618 leads signal Q₃ 616, resulting in signal Q₅ 622 being a logic low (e.g., −1). Signal Q₅ 622 would take a logic high value (e.g., +1) when Δf=f_(VCO)−f_(DATA)>0. As such, signal Q₅ 622 provides an indication of the polarity of Δf when Δf is within the “dead zone” range.

In an embodiment, samples of signals Q₁ 608, Q₂ 610, Q₃ 616, Q₄ 618, and Q₅ 622 (which may be digital samples) are provided (at a pre-determined rate) to a VCO calibration module. The VCO calibration module processes the samples to determine the magnitude and polarity of Δf and to determine a calibration code for the VCO based on the determined Δf information.

FIG. 8 illustrates an example heuristic algorithm 800 according to an embodiment of the present invention. Example heuristic algorithm 800 can be used, for example, by a VCO calibration module, such as VCO calibration module 206, to determine the polarity of Δf.

Example heuristic algorithm 800 uses one or more of signals Q₁ 608, Q₂ 610, Q₃ 616, Q₄ 618, and Q₅ 622 from frequency detector 600 to determine an FDIR (Frequency Direction) value, representative of the polarity of Δf. In an embodiment, the FDIR value is equal to +1 when the VCO clock frequency f_(VCO) is larger than the data signal frequency f_(DATA) (i.e., Δf>0), and to −1 when the VCO clock frequency f_(VCO) is lower than the data signal frequency f_(DATA) (Δf<0).

According to example heuristic algorithm 800, the Δf range is divided, into five regions (A, B, C, D, and E) based on the magnitude of Δf. Region C corresponds to the “dead zone” described above. The FDIR value can take values of −1, 0, or +1, depending on the Δf region that Δf falls in. In an embodiment, to determine the Δf region in which Δf falls and the FDIR value, the average and the number of transitions (transition count) of signal Q₃ 616 (over the pre-determined time interval) are examined as described below.

If the average of Q₃ 616 is zero and the transition count of signal Q₃ 616 is above a pre-defined (also programmable) threshold (e.g., 1000), then Δf is determined to be in regions A or E. Typically, in this case, signal Q₅ 622 is toggling rapidly and is not valid, and the FDIR value is equal to the average of Q₃ 616 (i.e., zero). This indicates to the VCO calibration module that Δf is large enough that a coarse frequency search over the VCO frequency range is first needed to bring Δf down to a range in which a finer search can be performed (i.e., to discover the correct VCO frequency band based on the data rate).

If, however, the average of Q₃ 616 is zero (or close to zero) and the transition count of signal Q₃ 616 is below the pre-defined threshold, then Δf is determined to be in region C (i.e., the “dead zone”). In this case, signal Q₅ 622 (as well as its average value) is either a logic low (e.g., −1) or a logic high (e.g., +1), and the FDIR value is equal to the value of signal Q₅ 622 (either −1 or +1).

On the other hand, if the average of Q₃ 616 is equal to −1 (or close to −1), then Δf is determined to be in region B and the FDIR value is equal to −1; and if the average of Q₃ 616 is equal to +1 (or closer to +1), then Δf is determined to be in region D and the FDIR value is equal to +1. Accordingly, in these cases, the determination of the Δf region and the FDIR value is made solely based on the average value of signal Q₃ 616 (the FDIR value is equal to the average of signal Q₃ 616). The transition count of signal Q₃ 616 is lower than the pre-defined threshold in these cases (typically Q₃ 616 is solid), but is not relevant for the determination of the Δf region and the FDIR value. The same applies to signal Q₅ 622, which is not toggling and is not valid in these cases.

Thus, according to example heuristic algorithm 800, the FDIR value is equal to either the average value of signal Q₃ 616 (in regions A, E, B, and D, i.e., outside the “dead zone”) or to the value of signal Q₅ 622 (in region C, i.e., inside the “dead zone”).

As noted above, the FDIR value indicates to a VCO calibration module, for example, whether the VCO clock frequency is currently lower/higher than the data rate (FDIR is −1 or +1) or if the VCO clock frequency is currently too far from the data rate (FDIR is 0). In an embodiment, based on a series of FDIR values, the VCO calibration module (e.g., VCO calibration module 206) performs a frequency search scheme to determine a calibration code (or VCO calibration state) that brings the VCO clock frequency sufficiently close to the data rate (i.e., a target calibration code).

In an embodiment, the frequency search scheme includes a discovery phase, a binary search phase, and a monitoring phase. In the discovery phase, the VCO calibration module performs a coarse search over the operating frequency range of the VCO to bring the VCO clock frequency to within a small range of the data rate (e.g., into regions B, C, or D). The discovery phase is illustrated in FIG. 9, which shows an example discovery phase scheme 900 for an 11-bit VCO (i.e., having 2048 calibration states) according to an embodiment of the present invention.

As shown in FIG. 9, the operating frequency range of the VCO is divided into a plurality of VCO bins 902 (e.g., 8 VCO bins), each VCO bin 902 corresponding to a respective band of the VCO frequency range and to a respective subset of calibration codes (calibration states) of the VCO. For example, VCO bin 902 ₁ corresponds to calibration codes 0 to 256 of the VCO. VCO bins 902 may or may not be equally-spaced, and may or may not be non-overlapping.

In an embodiment, the discovery phase includes a linear search over VCO bins 902. Starting from VCO bin 902 ₁ (alternatively, the linear search can start from VCO bin 902 _(N)), the VCO is calibrated with calibration code 256, and the resulting FDIR value is examined. If the resulting FDIR value is +1, then it can be determined that the VCO clock frequency is currently higher than the data rate (Δf is in region D), and that the target calibration code is within VCO bin 902 ₁. The discovery phase is thus terminated, and the frequency search scheme proceeds to the binary search phase.

If, however, the resulting FDIR value for calibration code 256 is −1, then it can be determined that the VCO clock frequency is lower than the data rate (Δf is in region B), and that the target calibration code is outside of VCO bin 902 ₁. Accordingly, the VCO is next calibrated with calibration code 512, and the resulting FDIR value is examined.

If the resulting FDIR value is +1, then it can be determined that the VCO clock frequency is currently higher than the data rate (Δf is in region D), and that the target calibration code is within VCO bin 902 ₂. The discovery phase is thus terminated, and the frequency search scheme proceeds to the binary search phase.

On the other hand, if the resulting FDIR value for calibration code 512 is −1, then it can be determined that the VCO clock frequency is lower than the data rate (Δf is in region B), and that the target calibration code is outside of VCO bins 902 ₁ and 902 ₂. Accordingly, the VCO is next calibrated with calibration code 768, and the same process as for calibration code 512 is repeated.

The linear search can thus proceed as described above until a VCO bin in which the FDIR value transitions from −1 to +1 can be found. Note that in the case that the target calibration code is within VCO bin 902 _(N) (i.e., the last VCO bin), a FDIR value of −1 will result at calibration code 1792. The discovery phase is terminated without checking calibration code 2047.

In another embodiment, the discovery phase is performed by generating a series of consecutive FDIR values (FDIR₁ to FDIR_(N)), with each FDIR value resulting from calibrating the VCO with a calibration code from one VCO bin. Then the consecutive FDIR values are examined against known patters to determine the target VCO bin (i.e., the VCO bin that includes the target calibration code). For instance, in the example of FIG. 9, consecutive FDIR values (FDIR₁ to FDIR₇) can be generated by calibrating the VCO consecutively to calibration codes 256, 512, 768, 1024, 1280, 1536, and 1792. Then, based on the consecutive FDIR values, the target VCO bin can be determined. For example, a FDIR pattern of FDIR₁=0/−1; FDIR₂=−1; FDIR₃−+1; FDIR₄=+1/0; FDIR₅=0; FDIR₆=0; and FDIR₇=0 indicates that the target VCO calibration is in VCO bin 902 ₃[512, 768].

Once a target VCO bin is identified, the frequency search proceeds to the binary search phase. In the binary search phase, a fine frequency search within the identified VCO bin (or the identified VCO frequency band) is performed to determine two consecutive calibration codes (within the identified VCO bin) for which the FDIR value transitions from −1 to +1. The FDIR transition from −1 to +1 indicates a negative to positive Δf transition (i.e., that Δf is very close to zero).

FIG. 10 is an example 1000 that illustrates the binary search phase according to an embodiment of the present invention. As shown in FIG. 10, the binary search phase is preceded by a discovery phase, as described above. In example 1000, the FDIR values for calibration codes 256 and 512 are −1 and +1, respectively. Accordingly, VCO bin [256,512] is identified as the target VCO bin in the discovery phase.

In the binary search phase, the search proceeds according to a binary search algorithm, starting with a search window that spans all codes between calibration codes 256 and 512. Thus, in the first step, the VCO is calibrated with calibration code 384 (which corresponds to the middle code in the search window [256,512]), and the resulting FDIR value is examined. In example 1000, the resulting FDIR value for code 384 is −1, indicating that the target VCO calibration code is between calibration codes 384 and 512.

Accordingly, the search window is updated to [384,512] and the middle code (448) in the updated search window is tested. The resulting FDIR value for code 448 is +1, which indicates that the target VCO calibration code is between calibration codes 384 and 448.

The binary search proceeds iteratively in the manner described above until two consecutive calibration codes for which the FDIR value transitions from −1 to +1 are determined In example 1000, as shown in FIG. 10, this occurs for calibration codes 402 (FDIR=−1) and 403 (FDIR=+1).

Subsequently, one of the two calibration codes is selected as the code with which to calibrate the VCO. In an embodiment, the calibration code with FDIR=+1 is selected. Alternatively, the calibration code with FDIR=−1 is selected. In a further embodiment, the frequency search scheme includes a monitoring phase to determine which of the two calibration codes is selected. In an embodiment, the monitoring phase includes monitoring and determining the period of signal Q₁ 608 (or signal Q₂ 610) for each of the two calibration codes, and selecting the code associated with the higher Q₁ 608 (Q₂ 610) period. It is noted that either signal Q₁ 608 or Q₂ 610 may be used as both signals have a period equal to (1/Δf). In another embodiment, the signal having the larger period over the monitoring phase (between signals Q₁ 608 and Q₂ 610) is monitored during the monitoring phase (over the monitoring phase, Q₁ 608 and Q₂ 610 may have different periods, even though they have equal long term average periods). In a further embodiment, signals Q₃ 616, Q₄ 618, and/or Q₅ 622 are used (in the same way as Q₁ 608 and Q₂ 610) to select the calibration code.

As would be understood by a person of skill in the art based on the teachings herein, the monitoring phase may be performed subsequent to the binary search phase or within the binary search phase (i.e., the period of Q₁ 608 or Q₂ 610 is determined together with the FDIR value for each particular code being tested).

After determining a calibration code for the VCO, the VCO calibration module (e.g., VCO calibration module 206) provides the calibration code to the VCO. In an embodiment, the calibration code is input into a control register of the VCO. The calibration code calibrates the VCO into a calibration state that brings the VCO clock frequency sufficiently close to the rate of the data signal. In an embodiment, the calibration code calibrates the VCO by digitally controlling (turning on/off) one or more capacitor banks within the VCO in order to output the desired VCO clock frequency.

FIG. 11 is a process flowchart 1100 that illustrates a method for reference-less calibration of a VCO according to an embodiment of the present invention. Process flowchart 1100 may be performed by a VCO calibration module, such as VCO calibration module 206, for example.

Process 1100 begins in step 1102, which includes applying a calibration code from a plurality of calibration codes to the VCO. In an embodiment, the plurality of calibration codes include a numbered sequence of calibration codes, each calibration code in the numbered sequence corresponding to a respective frequency of the VCO clock signal from an operating frequency range of the VCO. In another embodiment, the operating frequency range of the VCO is divided into a plurality of VCO bins, each VCO bin corresponding to a respective frequency band of the VCO and to a respective subset of calibration codes from the plurality of calibration codes.

In step 1104, process 1100 includes determining, based on the calibration code last applied to the VCO, a polarity value associated with a frequency difference between a VCO clock signal and a data signal. In an embodiment, the polarity value determined in step 1104 is positive, which allows identifying a target VCO bin (which includes a target calibration code that frequency calibrates the VCO clock signal to the data signal) as ending with the calibration code applied in step 1102. In another embodiment, the polarity value determined in step 1104 is negative, which allows identifying the target VCO bin as beginning with the calibration code applied in step 1102.

Subsequently, in step 1106, process 1100 includes determining a subsequent calibration code from the plurality of calibration codes based on the calibration code last applied to the VCO and the last determined polarity value. In an embodiment, the calibration code applied to the VCO in step 1102 corresponds to a middle code (i.e. located at the middle) of a subset of calibration codes associated with the identified target VCO bin, and the calibration code determined in step 1106 corresponds to a middle code between the calibration code applied to the VCO code in step 1102 and an end calibration code of the target VCO bin.

In step 1108, process 1100 includes applying the last determined calibration code to the VCO. Then, in step 1110, process 1100 includes determining, based on the calibration code last applied to the VCO (i.e., in step 1108) a polarity value associated with the frequency difference between the VCO clock signal and the data signal. In an embodiment, the polarity value determined in step 1104 is negative and the polarity value determined and the polarity value determined in step 1110 is positive. Thus, the target VCO bin is identified as beginning with the calibration code applied to the VCO in step 1102 and ending with the calibration code applied to the VCO in step 1108.

Subsequently, in step 1112, process 1100 includes testing whether or not the last two calibration codes applied to the VCO correspond to consecutive codes of the plurality of calibration codes (i.e., consecutive in the numbered sequence of calibration codes) and the last two determined polarity values have opposite polarity. If both conditions are true, process 1100 proceeds to step 1114, which includes selecting one of the last two applied calibration codes as a target calibration code. In an embodiment, the selected calibration code applied corresponds to a lower value of the frequency difference. Otherwise, process 1100 proceeds back to step 1106. Note that each time a new iteration in process 1100 is performed (i.e., steps 1106, 1108, 1110, and 1112), the target VCO bin is updated and narrowed until the exit condition in step 1112 is satisfied.

In an embodiment, to ensure that frequency lock is achieved, the periods of one or more of signals Q₁ 608, Q₂ 610, and Q₃ 616 are monitored over a defined time interval, after step 1114, and compared to a pre-determined value. When frequency lock is achieved, signals Q₁ 608, Q₂ 610, and Q₃ 616 will be slow moving (i.e., will toggle at a very low rate). As such, when the periods of signals Q₁ 608, Q₂ 610, and/or Q₃ 616 are above the pre-determined value, it is determined that frequency lock has been achieved. Otherwise, it is determined that frequency lock has not been achieved (due some error), and process 1100 is repeated.

Embodiments have been described above with the aid of functional building blocks illustrating the implementation of specified functions and relationships thereof. The boundaries of these functional building blocks have been arbitrarily defined herein for the convenience of the description. Alternate boundaries can be defined so long as the specified functions and relationships thereof are appropriately performed.

The foregoing description of the specific embodiments will so fully reveal the general nature of the invention that others can, by applying knowledge within the skill of the art, readily modify and/or adapt for various applications such specific embodiments, without undue experimentation, without departing from the general concept of the present invention. Therefore, such adaptations and modifications are intended to be within the meaning and range of equivalents of the disclosed embodiments, based on the teaching and guidance presented herein. It is to be understood that the phraseology or terminology herein is for the purpose of description and not of limitation, such that the terminology or phraseology of the present specification is to be interpreted by the skilled artisan in light of the teachings and guidance.

The breadth and scope of embodiments of the present invention should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents. 

What is claimed is:
 1. A frequency detector, comprising: a first sampling stage that receives a data signal and a clock signal, and that samples the clock signal according to an in-phase component and a quadrature phase component of the data signal, respectively, to generate a first signal and a second signal; a second sampling stage that receives the first signal and the second signal, and that samples the second signal according to the first signal to generate a third signal and that samples the first signal according to the second signal to generate a fourth signal; and a third sampling stage that receives the third signal and the fourth signal, and that samples the third signal according to the fourth signal to generate a fifth signal.
 2. The frequency detector of claim 1, further comprising a delay buffer that receives the in-phase component of the data signal and generates the quadrature phase component of the data signal.
 3. The frequency detector of claim 2, wherein the first, second, and third sampling stages and the delay buffer use high-speed common mode logic (CML) or standard CMOS logic.
 4. The frequency detector of claim 1, wherein the first, second, third, fourth, and fifth signals are high-speed differential signals.
 5. The frequency detector of claim 1, wherein each of the first, second, and third sampling stages comprises one or more D flip flops.
 6. The frequency detector of claim 1, wherein a period of the first signal and the second signal is proportional to a frequency difference between a frequency of the clock signal and a frequency of the data signal.
 7. The frequency detector of claim 6, wherein the first signal leads the second signal when the frequency difference is negative, and the first signal lags the second signal when the frequency difference is positive.
 8. The frequency detector of claim 6, wherein a polarity of the frequency difference is provided by the fifth signal when the frequency difference is within a defined frequency difference range and by an average value of the third signal when the frequency difference is outside the defined frequency difference range.
 9. The frequency detector of claim 8, wherein when the frequency difference is within the defined frequency difference range, the average value of the third signal is substantially close to zero and a transition count of the third signal is above a pre-determined threshold.
 10. The frequency detector of claim 8, wherein when the frequency difference is within the defined frequency difference range, the fifth signal takes a logic high value when the polarity of the frequency difference is positive and a logic low value when the polarity of the frequency difference is negative.
 11. The frequency detector of claim 8, wherein the defined frequency difference range straddles zero.
 12. The frequency detector of claim 1, wherein the frequency detector is reference-less.
 13. The frequency detector of claim 1, wherein the frequency detector is implemented in digital form.
 14. A clock recovery circuit, comprising: a frequency detector that receives a voltage controlled oscillator (VCO) clock signal and a data signal, and that generates one or more signals representative of a frequency difference between the VCO clock signal and the data signal; a VCO calibration module that receives the one or more signals from the frequency detector, and that determines a VCO calibration code based on the one or more signals; a VCO that receives the VCO calibration code from the VCO calibration module, and that calibrates a frequency of the VCO clock signal based on the VCO calibration code to generate a frequency calibrated VCO clock signal; and a phase detector that receives the frequency calibrated VCO clock signal and the data signal, and that controls the VCO to adjust a phase of the frequency calibrated VCO clock signal based on a phase difference between the frequency calibrated VCO clock signal and the data signal, wherein the frequency detector comprises: a first sampling stage that receives the data signal and the VCO clock signal, and that samples the VCO clock signal according to an in-phase component and a quadrature phase component of the data signal, respectively, to generate a first signal and a second signal; a second sampling stage that receives the first signal and the second signal, and that samples the second signal according to the first signal to generate a third signal and the first signal according to the second signal to generate a fourth signal; and a third sampling stage that receives the third signal and the fourth signal, and that samples the third signal according to the fourth signal to generate a fifth.
 15. The clock recovery circuit of claim 14, wherein the frequency detector is a reference-less frequency detector.
 16. The clock recovery circuit of claim 14, wherein the frequency detector is implemented in digital form.
 17. The clock recovery of claim 14, wherein the one or more signals generated by the frequency detector include information regarding a magnitude and a polarity of the frequency difference between the VCO clock signal and the data signal.
 18. The clock recovery of claim 14, wherein the VCO calibration module performs one or more of a linear search and a binary search over a frequency range of the WO to determine the VCO calibration code.
 19. The clock recovery of claim 14, wherein the VCO calibration module determines a zero crossing of the frequency difference between the VCO clock signal and the data signal based on the one or more signals, in order to determine the VCO calibration code. 